package com.genius.framework.multitenancy.annotation;

import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * 动态定时任务注解类
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Component
public @interface CommonScheduleTask {
    /**
     * 用name代替component的value
     */
    @AliasFor(annotation = Component.class, attribute = "value")
    String name() default "";

    /**
     * 类的描述
     */
    String description() default "";

    /**
     * 是否可选
     */
    boolean active() default true;
}
